Skip to content

服务人员信息更新

用于服务商/用于服务商/商户开发者为商户更新门店服务人员的姓名、头像等信息

请求参数类型描述
guide_idstring服务人员ID
jsonobject声明请求的JSON数据结构
sub_mchidstring子商户ID
namestring企业微信的员工姓名
mobilestring手机号码
qr_codestring员工个人二维码
avatarstring头像URL
headersobject声明请求的头参数
Wechatpay-Serialstring平台公钥ID/平台公钥证书序列号
php
$instance->v3->smartguide->guides->_guide_id_->patchAsync([
  'guide_id' => 'LLA3WJ6DSZUfiaZDS79FH5Wm5m4X69TBic',
  'json' => [
    'sub_mchid' => '1234567890',
    'name' => '',
    'mobile' => '',
    'qr_code' => '',
    'avatar' => '',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/smartguide/guides/{guide_id}')->patchAsync([
  'guide_id' => 'LLA3WJ6DSZUfiaZDS79FH5Wm5m4X69TBic',
  'json' => [
    'sub_mchid' => '1234567890',
    'name' => '',
    'mobile' => '',
    'qr_code' => '',
    'avatar' => '',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/smartguide/guides/{guide_id}']->patchAsync([
  'guide_id' => 'LLA3WJ6DSZUfiaZDS79FH5Wm5m4X69TBic',
  'json' => [
    'sub_mchid' => '1234567890',
    'name' => '',
    'mobile' => '',
    'qr_code' => '',
    'avatar' => '',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->smartguide->guides->_guide_id_->patch([
  'guide_id' => 'LLA3WJ6DSZUfiaZDS79FH5Wm5m4X69TBic',
  'json' => [
    'sub_mchid' => '1234567890',
    'name' => '',
    'mobile' => '',
    'qr_code' => '',
    'avatar' => '',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/smartguide/guides/{guide_id}')->patch([
  'guide_id' => 'LLA3WJ6DSZUfiaZDS79FH5Wm5m4X69TBic',
  'json' => [
    'sub_mchid' => '1234567890',
    'name' => '',
    'mobile' => '',
    'qr_code' => '',
    'avatar' => '',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/smartguide/guides/{guide_id}']->patch([
  'guide_id' => 'LLA3WJ6DSZUfiaZDS79FH5Wm5m4X69TBic',
  'json' => [
    'sub_mchid' => '1234567890',
    'name' => '',
    'mobile' => '',
    'qr_code' => '',
    'avatar' => '',
  ],
  'headers' => [
    'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
  ],
]);
print_r($response->getStatusCode() === 204);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档

Published on the GitHub by TheNorthMemory